from django.db import models

class Coletor(models.Model):
	local = models.CharField(max_length=200)
	x = models.FloatField()
	y = models.FloatField()
	ip = models.IPAddressField()

	def __unicode__(self):
		return self.local

class Historico(models.Model):
	coletor = models.ForeignKey(Coletor)
	data = models.DateTimeField()
	temperatura = models.FloatField()
	
	

